function DID_plots(t,gap,coefficient,lower_mdl,upper_mdl,CI,linetype,color)
    plot(t(1:3),coefficient(1:3),linetype,'Color',color,'linewidth',2);
    hold on
    plot(t(4:6),coefficient(4:6),linetype,'Color',color,'linewidth',2);
    hold on
    plot(t,coefficient,'.','color',color,'MarkerSize',15);
    hold on
    if CI==1
        for i=[1:2,4:6]
            plot([t(i),t(i)],[lower_mdl(i),upper_mdl(i)],'-','Color',color,'linewidth',0.5);
            hold on
            plot([t(i)-gap,t(i)+gap],[lower_mdl(i),lower_mdl(i)],'-','Color',color,'linewidth',1);
            hold on
            plot([t(i)-gap,t(i)+gap],[upper_mdl(i),upper_mdl(i)],'-','Color',color,'linewidth',1);
            hold on
        end
    end
    plot([-0.5+min(t),0.5+max(t)],[0,0],'--','Color','k','linewidth',0.5);
    hold on
    plot([0.5,0.5],[-100,+100],'-.','Color','k','linewidth',0.5);
end

